package com.zhaoyizhe.demo.service;

import com.zhaoyizhe.demo.mapper.MessageInfoXMLMapper;
import com.zhaoyizhe.demo.model.MessageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageService {
    @Autowired
    private MessageInfoXMLMapper messageInfoXMLMapper;

    public Integer insertInfo(MessageInfo messageInfo){
        return messageInfoXMLMapper.insertInfo(messageInfo);
    }

    public List<MessageInfo> queryInfo(){
        return messageInfoXMLMapper.queryInfo();
    }


}
